package cn.dada.dadarecipes.user.user.service;

import cn.dada.dadarecipes.user.user.pojo.dto.*;
import cn.dada.dadarecipes.user.user.pojo.vo.UserVO;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {
    UserVO reg(UserRegParam userRegParam);


    UserVO login(UserLoginParam userLoginParam, HttpSession session);

    void logout(Long id, HttpSession session);


    void password(UserPasswordParam userPasswordParam);

    void delete(Long userId);

    void update(UserMessageEditParam userMessageEditParam);

    List<UserVO> query(Long userId);

    void resetPassword(UserResetPassword userResetPassword);

    UserVO phoneLogin(UserPhoneLoginParam userPhoneLoginParam, HttpSession session);

    String generateAndStoreCaptcha(String phone);


}
